package com.brush.web.controller.piggoods;

import com.brush.common.core.controller.BaseController;
import com.brush.common.core.domain.R;
import com.brush.pig.domain.req.Goods.LotGoodsQueryReq;
import com.brush.pig.domain.resp.Goods.LotGoodsResp;
import com.brush.pig.service.IotGoodsService;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台-生猪-物资管理")
@RestController
@RequestMapping(value = "/admin/pig/goods")
public class lotGoodsController extends BaseController {
    @Autowired
    private IotGoodsService iotGoodsService;
    //分页查询

    @ApiOperation(value = "LotPigGoods分页查询物资信息")
    @GetMapping("/list")
    public R<PageInfo<LotGoodsResp>> pagination(LotGoodsQueryReq req) {
        PageInfo<LotGoodsResp> page = this.iotGoodsService.paginationQuery(req);
        return R.ok(page);
    }

}
